package com.test.demo.algorithm.simple;

/**
 * 数值反转
 *
 * 123-》321
 * 200-》2
 */
public class ReverseInteger {

    public static void main(String[] args) {
        System.out.println(reverseInteger(123));
    }

    public static int reverseInteger(int value){
        return value%10*100+value/10%10*10+value/100;
    }

}
